package com.jia.lidao.network.http.request.impl;

import com.jia.lidao.Constans;
import com.jia.lidao.network.http.request.AbstractRequest;

import org.apache.http.Header;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by jia on 17/12/17.
 */

public class ForgetPswRequest extends AbstractRequest {

    private String mobile, password, verify, captcha;

    public ForgetPswRequest(String mobile,String password,String verify,String captcha){
        this.mobile=mobile;
        this.password=password;
        this.verify=verify;
        this.captcha=captcha;
    }

    @Override
    public String getUrl() {
        return Constans.BASEURL+"/password/forgot";
    }

    @Override
    public void initRequestParams() {
        addParam("mobile",mobile);
        addParam("password",password);
        addParam("verify",verify);
        addParam("captcha",captcha);
    }

    @Override
    public List<Header> getHeaders() {
        return null;
    }

    @Override
    public Type getResultType() {
        return Void.class;
    }
}
